package com.ce.pms.renovation.web;

import java.util.List;

import com.ce.pms.base.web.PmsBaseAction;
import com.ce.pms.common.service.ISysrefcodeService;
import com.ce.pms.house.service.IBuildingService;
import com.ce.pms.house.vo.BuildingVO;

/**
 * 装修手续办理主Action
 * @author 黄彦军
 *
 */
public class ProceduresRenovationAction extends PmsBaseAction {

	private IBuildingService buildingService;

	private ISysrefcodeService sysrefcodeService;


	/**
	 * 功能描述:导航到 装修手续办理主页面  <br>
	 * @return
	 * Create author:黄彦军 <br>
	 * Create on:2008-12-19  <br>
	 */
	public String navigateMain(){
		List<BuildingVO> buildingList = buildingService.getAllBuildingList();//获取所有楼栋
		List requisitionStateList = sysrefcodeService.querySysrefCodesByCode("RM_RENOVATE_REQUISITION_STATE");//获取审批状态列表

		setAttribute("buildingList", buildingList);
		setAttribute("requisitionStateList", requisitionStateList);

		return "proceduresRenovationMain";
	}

	//-----------------------------------------------------------------------------
	public void setBuildingService(IBuildingService buildingService) {
		this.buildingService = buildingService;
	}

	public void setSysrefcodeService(ISysrefcodeService sysrefcodeService) {
		this.sysrefcodeService = sysrefcodeService;
	}

}
